package com.common.DAO;

import java.util.List;

public interface IBaseDAO {
	
	/**
	 * Save.
	 * 
	 * @param entity the entity
	 * @return saved object
	 */
	public Object save(Object entity);
	
	
	/**
	 * List.
	 * 
	 * @param string the string
	 * @return the list
	 */
	@SuppressWarnings({ "rawtypes" })
	public List list(String string);
	
	/**
	 * List.
	 * 
	 * @param qry the qry
	 * @param object the object
	 * @return the list
	 */
	public List<Object> list(String qry, Object[] object);
	
	public void update(Object entity);
	
	/**
	 * Method used to remove an object in database
	 * @param entity
	 */
	public void remove(Object entity);
}
